package OOPS;

class Person1 {
	private String name;
	private int age;

	Person1() {
		System.out.println("--- Person() Def Cons");
	}

	Person1(String name, int age) {
		System.out.println("--- Person(String,int) Cons");
		this.name = name;
		this.age = age;
	}

	String getName() {
		return name;
	}

	int getAge() {
		return age;
	}
}

class user0 extends Person1 {
	String user0name;
	String password;

	user0() {
		super();
		System.out.println("--- user0() Def Cons");
	}

	user0(String name, int age, String user0name, String password) {
		super(name, age);
		System.out.println("--- user0(String,int,String,String) Cons");
		this.user0name = user0name;
		this.password = password;
	}

	user0(String user0name, String password) {
		System.out.println("--- user0(String,String) Cons");
		this.user0name = user0name;
		this.password = password;
	}
}

class Student3 extends user0 {
	private int sid;

	Student3(int sid, String name, int age, String user0name, String password) {
		// user0();
		super(name, age, user0name, password);
		System.out.println("--- Student(int,String,int,String,String) Cons");
		this.sid = sid;
	}

	Student3(int sid, String user0name, String password) {
		super(user0name, password);
		System.out.println("--- Student(int,String,String) Cons");
		this.sid = sid;
	}

	void show() {
		System.out.println(sid + "\t" + getName() + "\t" + getAge() + "\t" + user0name + "\t" + password);
	}
}

class Test44 {
	public static void main(String str[]) {
		// Student st1=new Student();
		Student3 st2 = new Student3(99, "srinivas", "javasree");
		st2.show();
		Student3 st3 = new Student3(98, "sri", 32, "jlcindia", "nivas");
		st3.show();
	}
}